package com.seata.logic.visualize.feign;

import com.seata.core.config.FeignHeaderInterceptor;
import com.seata.core.utils.Response;
import com.seata.logic.visualize.dto.DecreaseMoneyDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 蚂蚁会花呗
 * @date 2021/9/9 15:33
 */
@FeignClient(name = "${feign.app.seata-account}",configuration = FeignHeaderInterceptor.class)
public interface AccountFeignService {


    /**
     * 扣减钱数
     * @param decreaseMoneyDto
     * @return
     */
    @PostMapping("/account/userMoney/decreaseMoney")
    Response decreaseMoney(@RequestBody DecreaseMoneyDto decreaseMoneyDto);

}
